<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Benchmark</title>
    <script type="text/javascript" src="benchmarker.js"></script>
    <script type="text/javascript">
/* <![CDATA[ */
new Benchmarker({
  // this example shows how to define methods" inside the "setup" block
}, {
  summary:     'String.split()',
  description: 'musing around String.split() implementation',
  setup: function() {
    var qRE = /[;&]/;
    methods = {
      string:         function(){ return this.query.split('&') },
      regexp:         function(){ return this.query.split(/[;&]/) },
      regexpCompiled: function(){ return this.query.split(qRE) }
    };
  },
  atInit: function() {
    this.query = 'a=1&b=2&c=3&d=4';
  }
});
/* ]]> */
    </script>
  </head>
  <body>
  </body>
</html>
